﻿using EFCore事务示例同时向两张表新增数据.Models;
using Microsoft.EntityFrameworkCore;

namespace EFCore事务示例同时向两张表新增数据.Data
{
    public class MyContext : DbContext
    {
        public MyContext(DbContextOptions options) : base(options)
        {
        }

        public DbSet<Student> Students { get; set; }
        public DbSet<MyClass> MyClasses { get; set; }
    }
}
